<!DOCTYPE html>
{% load i18n common_tags developer_tags %}

<html>
<head>
    <meta charset="utf-8" />

    <title>{% block title %}{% endblock %} | I.O</title>

    <meta name="ROBOTS" content="none" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="MSSmartTagsPreventParsing" content="true" />
    <meta name="Copyright" content="This site's design and contents Copyright (c) 2010  Spike^ekipS" />

	<link href="{{STATIC_URL}}css/base.css" rel="stylesheet" type="text/css"
        media="screen" />

	<link
        href="{{STATIC_URL}}js/jquery/jqueryui/css/custom-theme/jquery-ui-1.8.6.custom.css"
        rel="stylesheet" type="text/css" media="screen" />

	<script src="{{STATIC_URL}}js/jquery/jquery-1.4.4.js" rel="javascript"
        type="text/javascript"></script>
	<script src="{{STATIC_URL}}js/jquery/jqueryui/js/jquery-ui-1.8.6.custom.min.js"
        rel="javascript" type="text/javascript"></script>

    {% include_media %}
    {% block extrahead %}{% endblock %}
</head>
<body>

{% block nav %}
<nav>
    <dl class="menu">
    <dd>
        <ol>
            <li>
                <input type="search" name="q" placeholder="Search" />
            </li>
            <li>
                <a href="/">Frontpage</a>
            </li>
        </ol>
    </dd>
    </dl>

    {% block nav_content %}{% endblock %}

    <dl class="menu">
    <dt><label>Dialog</label></dt>
    <dd>
        <ol>
            <li>
                <a href="{% url dialog_index %}">✷ Latest</a>
                <a href="{% url dialog_developer username=user.username %}">ⓜ Mine</a>
                <a
            href="{% url dialog_developer_by_labels labels="Inbox" username=user.username %}"
                >✉ Inbox</a>
                <a
                    href="{% url dialog_developer_by_starred username=user.username %}"
                    >★ Starred</a>
            </li>
        </ol>
    </dd>
    </dl>


    <dl class="menu">
    <dt><label>Labels</label></dt>
    <dd>
        <ol>
            {% for l in profile_labels %}
            <li>
                <a
            href="{% url dialog_developer_by_labels labels=l.name username=user.username %}"
                >☉ {{l}}</a>
            </li>
            {% endfor %}
        </ol>
    </dd>

    <dt><label>Projects</label></dt>
    <dd>
        <ol>
            {% if not projects %}
                <li>
                    <span class="msg"><span class="info">Register new project</span></span>
                </li>
            {% endif %}

            {% for p in projects %}
                <li>
                    <a href="{% url project project=p.code %}">✴ {{p.name}}</a>
                </li>
            {% endfor %}
        </ol>
    </dd>
    </dl>
</nav>

{% if user.is_authenticated %}
<div class="helper">
    <div class="helper-content">
    <div class="picture box1 align-right">
        <a href="{% url developer username=user.username %}"
            ><img src="{{user.profile.profile_picture}}" /></a>
    </div>
    <div class="box2">
        <dl class="menu">
        <dd>
            <ol>
            <li>
                <a href="{% url developer username=user.username %}">View my profile</a>
            </li>
            <li>
                <a href="{% url django.contrib.auth.views.logout %}"> Logout</a>
            </li>
            </ol>
        </dd>
        </dl>
    </div>
    </div>
</div>
{% endif %}
{% endblock %}

<div id="content">
    {% block header %}
    <header>
    {% comment %}
    {% block content_title %}{% endblock %}
    {% endcomment %}
    </header>
    {% endblock %}

    <div id="service-messages" class="msgs">
    {% block message %}
    {% if messages %}
        {% for msg in messages %}
        <span class="msg"><span class="{{msg.tags}}">{{msg}}</span></span>
        {% endfor %}
    {% endif %}
    {% endblock %}
    </div>

    <div id="content-main">
        {% block content %}{% endblock %}
    </div>

</div>

<footer>
&copy;2011 I.O. is a registered trademark of the Spike^ekipS &lt;spikeekips@gmail.com&gt;
</footer>


</body>
</html>
